<template>
	<view>
		<view class="content">
			<view class="chep">
				<text>{{datalist.plateNo}}</text>
			</view>
			<view class="lb">
				<view class="name">停车地点：</view>
				<view class="tex">{{datalist.parkName}}</view>
			</view>
			<view class="lb">
				<view class="name">停车时长：</view>
				<view class="tex">{{datalist.parkDuration}}</view>
			</view>
			<view class="lb">
				<view class="name">入场时间：</view>
				<view class="tex">{{datalist.entryTime | formatDate}}</view>
			</view>
			<view class="lb">
				<view class="name">停车费总积分：</view>
				<view class="tex" style="color: #FF0000;">{{datalist.paidCredit}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { carParkOrderinfo } from '@/core/api/index.js'
	export default{
		data(){
			return{
				datalist:{},
				show:false
			}
		},
		onLoad(r) {
			console.log(r)
			this.CheckParking(r.id)
		},
		methods:{
			async CheckParking(id){
				const data = await carParkOrderinfo(id)
				this.datalist = data.data
				console.log(data)
			}
		}
	}
</script>

<style lang="scss">
	.content{
		margin: 20rpx 40rpx 40rpx;
		background-color: #fff;
		.chep{
			padding: 35rpx 30rpx;
			margin-bottom: 15rpx;
			width: auto;
			border: 1rpx solid #F9F9F9;
			text{
				background: #EFF7FB;
				display: block;
				border-radius: 10rpx;
				padding: 1rpx 15rpx;
				    width: fit-content;
					font-size: 26rpx;
			}
		}
		.lb{
			display: flex;
			padding: 15rpx 30rpx;
			justify-content: space-between;
			.name{
				color: #A2A2A2;
			}
		}
	}
	.btn{
		background: #F26B2E;
		margin:  60rpx 40rpx;
		// width: 100%;
		height: 80rpx;
		color: #fff;
		font-size: 32rpx;
		text-align: center;
		line-height: 80rpx;
		border-radius: 60rpx;
	
	}
	.pop_conte{
		width: 80vw;
		height: 500rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		position: relative;
		.clone{
			width: 50rpx;
			height: 50rpx;
			position: absolute;
			    right: 5%;
			    top: 4%;
			image{
				width: 100%;
			}
		}
		.logo{
			width: 110rpx;
			image{
				width: 100%;
			}
		}
		.msg{
			font-size: 32rpx;
			margin: 10rpx 0 20rpx;
		}
		.tip{
			font-size: 40rpx;
			color: var(--Color, #F26B2E);
		}
		.dh{
			background: var(--, #F26B2E);
			height: 80rpx;
			color: #fff;
			font-size: 32rpx;
			text-align: center;
			line-height: 80rpx;
			margin: 50rpx 0 0;
			border-radius: 60rpx;
			width: 80%;
		}
	}
</style>